package com.lwj.listener;
 
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
 
/**
 * session监听器
 */
public class RedisSessionListener implements HttpSessionListener {
 
    public void sessionCreated(HttpSessionEvent event) {
        System.out.println("sessionCreated-->" + event.getSession().getId());
    }
 
    public void sessionDestroyed(HttpSessionEvent event) {
        System.out.println("sessionDestroyed-->" + event.getSession().getId());
    }
}